-
Couldn't load subscription status.
- Fork 3
chore(iota-transaction-builder): Add crate documentation #309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Thibault Martinez <[email protected]>
|
I guess my suggestion was badly formatted |
| //! Each command method adds one or more commands to the final transaction. Some | ||
| //! commands have optional follow-up methods. All command results can be named | ||
| //! via [name](TransactionBuilder::name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would mention why naming a command is necessary because it's not apparent why that's a good feature to have?
| //! - [transfer_objects](TransactionBuilder::transfer_objects): Send objects to | ||
| //! a recipient address. | ||
| //! - [publish](TransactionBuilder::publish): Publish a move package. | ||
| //! - `package_id`: Name the package ID returned by the publish call. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wondering what's that for, because I didn't need it in the example. 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might not be needed
| //! - [apply_argument](TransactionBuilder::apply_argument) | ||
| //! - [apply_arguments](TransactionBuilder::apply_arguments) | ||
| //! - [input](TransactionBuilder::input) | ||
| //! - [pure_bytes](TransactionBuilder::pure_bytes) | ||
| //! - [pure](TransactionBuilder::pure) | ||
| //! - [command](TransactionBuilder::command) | ||
| //! - [named_command](TransactionBuilder::named_command) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but shouldn't they be documented here as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's better to have the detailed docs on the method itself and just link to them here
|
Failing CI |
Co-authored-by: /alex/ <[email protected]>
…r/iota-rust-sdk into chore/txn-builder-docs
|
Failing CI (in case you haven't seen) |
Co-authored-by: Thibault Martinez <[email protected]>
|
Failing CI |
Description
Adds docs to the
iota-transaction-buildercrate and thetransfer-objectsandgasbuilder functions.Closes #290
Closes #295
Closes #299